package com.tang.util.jasypt;

import org.jasypt.encryption.pbe.StandardPBEStringEncryptor;

public class ENCUtil {

    public static void main(String[] args) {
        StandardPBEStringEncryptor encryptor = new StandardPBEStringEncryptor();
        encryptor.setPassword(""); // 设置加密密钥
        String encryptedPassword = encryptor.encrypt("mysecretpassword");
        System.out.println("Encrypted Password: " + encryptedPassword);
    }
}
